#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import sys
import shutil

base_path =  os.path.abspath( os.path.join( __file__ ,"../" ) ) +"/"

print(base_path);
os.chdir( base_path )

def rm(path):
    if  os.path.exists( base_path + path) :
            print(base_path + path)
            shutil.rmtree(base_path + path )

if __name__=='__main__':
    print("-------------------------------------------------------------------------------")
    print("")
    print("正在清理 ...")
    print("")

    rm("admin/dist")
    rm("c/dist")
    rm("c/dist_cn")
    rm("c/dist_en")
    rm("c/src_cn")
    rm("c/src_en")
    rm("c/html_cn")
    rm("c/html_en")
    rm("corp/dist")
    rm("corp/dist_cn")
    rm("corp/dist_en")
    rm("corp/src_cn")
    rm("corp/src_en")
    rm("corp/html_cn")
    rm("corp/html_en")

    print("")
    print("安装完成！！！")
    print("-------------------------------------------------------------------------------")


